﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Broker.Downstream.Properties;

namespace Broker.Downstream
{
    class Program
    {
        static void Main(string[] args)
        {
            StockConnection connection = new StockConnection(Settings.Default.ServerAddress);
            connection.StockUpdated += UpdateStock;
            connection.Listen();
        }

        static void UpdateStock(object sender, StockUpdatedEventArgs e)
        {
            Console.WriteLine("Updating stock '{0}'.", e.Stock.Name);
        }
    }
}
